/*
package com.lqw.sys.platform.common.response;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.http.HttpStatus;
import org.springframework.ui.ModelMap;

*/
/**
 * Created by luqiwen on 2016/12/3.
 *
 * 使用了DWZ框架，
 * 成功返回状态： 200
 * 失败返回状态： 300
 * 超时返回状态： 301
 *//*

public class ResponseUtil {

    //private static final Logger logger= Logger.getLogger(ResponseUtil.class);
    private static final Log logger= LogFactory.getLog(ResponseUtil.class);
    private ResponseUtil(){ }

    */
/**
     * 关闭当前标签并刷新传入的标签
     * @param
     * @return
     *//*

    public static ModelMap buildResponseFlushNavTabOK(String navTabId){
        return buildResponse(HttpStatus.OK,"操作成功",navTabId,"","closeCurrent","","");
    }

    public static ModelMap buildResponseOK(){
        return buildResponseOK("操作成功");
    }

    public static ModelMap buildResponseOK(String message){
        return buildResponseOK(HttpStatus.OK,message);
    }

    public static ModelMap buildResponseOK(String navTabId,String message){
        return buildResponse(HttpStatus.OK,message,navTabId,"","","","");
    }

    public static ModelMap buildResponseOK(HttpStatus status, String message){
        return buildResponse(status,message,"","","","","");
    }

    public static ModelMap buildResponseError(){
        return buildResponseError("操作失败");
    }

    public static ModelMap buildResponseError( String message){
        return buildResponseError(HttpStatus.MULTIPLE_CHOICES,message);
    }

    public static ModelMap buildResponseError( HttpStatus status,String message){
        return buildResponse(status,message,"","","","","");
    }

    */
/**
     * @param statusCode
     * @param message
     * @param navTabId
     * @param rel
     * @param callbackType
     * @param forwardUrl
     * @param confirmMsg
     *//*

    public static ModelMap buildResponse(HttpStatus statusCode, String message, String navTabId, String rel, String callbackType, String forwardUrl, String confirmMsg){
        ModelMap modelMap=new ModelMap();
        modelMap.addAttribute("statusCode",statusCode.toString());
        modelMap.addAttribute("message",message);
        modelMap.addAttribute("navTabId",navTabId);
        modelMap.addAttribute("rel",rel);
        modelMap.addAttribute("callbackType",callbackType);
        modelMap.addAttribute("forwardUrl",forwardUrl);
        modelMap.addAttribute("confirmMsg",confirmMsg);
        return modelMap;
    }
}
*/
